-- GENERATED SPELL FOR [Stormforged Runeshaper] --


function spell0_28836(pUnit, Event) --@Charged Flurry,Self--
pUnit:FullCastSpellOnTarget(53049,pUnit)
pUnit:RegisterEvent('Sorts_28836', 6000, 1)
end

function spell1_28836(pUnit, Event) --@Charged Flurry,Self--
pUnit:FullCastSpellOnTarget(61581,pUnit)
pUnit:RegisterEvent('Sorts_28836', 6000, 1)
end

function spell2_28836(pUnit, Event) --@Startling Roar,Self--
pUnit:FullCastSpellOnTarget(53048,pUnit)
pUnit:RegisterEvent('Sorts_28836', 279, 1)
end

function Sorts_28836(pUnit, Event)
local choix_sorts_28836 = math.random(0, 2)
if choix_sorts_28836 == 0 then
pUnit:RegisterEvent('spell0_28836', 1, 1)
end
if choix_sorts_28836 == 1 then
pUnit:RegisterEvent('spell1_28836', 1, 1)
end
if choix_sorts_28836 == 2 then
pUnit:RegisterEvent('spell2_28836', 1, 1)
end
end

function mob28836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28836', math.random(1500, 3000), 1)
end

function mob28836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28836, 1, 'mob28836_Action')
RegisterUnitEvent(28836, 2, 'mob28836_Leave')
RegisterUnitEvent(28836, 3, 'mob28836_Kill')
RegisterUnitEvent(28836, 4, 'mob28836_Die')
